//点击立即报名
$('#detailsBox>button').click(function () {
   var purchaseid= $('#purchaseid').attr("purchaseid");
    new Ajax("/my/register").keyvalue("purchaseid",purchaseid).get(function(json){
        if(json==1){
            $(this).text("报名成功").css({'background': '#f0f0f0', 'color': '#909090'});
        }
    })
    
    
});